﻿.doc-toc {
  color: #6c757d;
  font-size: 0.875rem;
  max-width: 100%;
}
.doc-toc ul {
  list-style: none;
  padding-left: 0;
}
.doc-toc ul ul {
  padding-left: 1rem;
}
.doc-toc li a {
  color: #6c757d;
  text-decoration: none;
}
.doc-toc li a:hover {
  text-decoration: underline;
}
.doc-toc li > div,
.doc-toc li > a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
}
.doc-toc div.item-text {
  border-radius: 0.375rem;
}
.doc-toc div.item-text.active {
  background-color: #0d6efd;
  color: #f8f9fa;
  font-weight: 600;
}
.doc-toc div.item-text.active a {
  color: #f8f9fa;
}

.doc-article .doc-toc hr {
  display: none;
  margin: 0.5rem 0;
}
.doc-article :target {
  padding-top: 5rem;
  margin-top: -5rem;
}
.doc-article figure {
  display: block;
  text-align: center;
}
.doc-article em {
  color: #d63384;
}
.doc-article pre:has(code) {
  background-color: #f5f2f0;
  padding: 1rem;
}

@media (min-width: 992px) {
  #divLayout {
    display: grid;
    grid-template-areas: "toc main";
    grid-template-columns: 1fr 5fr;
    gap: 1.5rem;
  }

  #divTocWrapper {
    grid-area: toc;
    height: calc(100vh - 5rem);
    overflow-y: auto;
    padding-right: 0.5rem;
    position: sticky;
    top: 5rem;
  }

  .doc-article {
    grid-area: main;
    contain: inline-size;
  }
  .doc-article .doc-content {
    width: 80%;
  }
  .doc-article .doc-toc {
    float: right;
    padding-left: 1rem;
    position: sticky;
    top: 5rem;
    width: 20%;
  }
  .doc-article .doc-toc hr {
    display: block;
  }
}
